<div :class="{ 'grid': true, 'show-paging-bar': isEnablePagingBar, 'hidden-paging-bar': !isEnablePagingBar }">
        <i-form>
        <el-table v-if="isDisplay === true"
            :default-sort="{ prop: minorSortPSDEF, order: Object.is(minorSortDir, 'ASC') ? 'ascending' : Object.is(minorSortDir, 'DESC') ? 'descending' : '' }"  
            @sort-change="onSortChange($event)"  
            :border="isDragendCol"
            :highlight-current-row ="isSingleSelect"
            :row-class-name="getRowClassName.bind(_self)"
            :cell-class-name="getCellClassName.bind(_self)"
            size="mini"
            stripe
            :height="tableHeight"
            @row-click="rowClick($event)"  
            @select-all="selectAll($event)"  
            @select="select($event)"  
            @row-class-name="onRowClassName($event)"  
            @row-dblclick="rowDBLClick($event)"  
            ref='multipleTable' :data="items" :show-header="!isHideHeader"
        >
            <template slot="empty">
                无数据 
                <span class="quick-toolbar">
                </span>
            </template>
            <template v-if="!isSingleSelect">
                <el-table-column align="center" type='selection' :width="checkboxColWidth"></el-table-column>
            </template>
            <template v-if="getColumnState('id')">
                <el-table-column show-overflow-tooltip :prop="'id'" :label="$t('entities.story.mygroupmain_grid.columns.id')" :width="70"  :align="'left'" :sortable="'custom'">
                    <template v-slot:header="{column}">
                      <span class="column-header ">
                        {{$t('entities.story.mygroupmain_grid.columns.id')}}
                      </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                        <span>{{row.id}}</span>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('pri')">
                <el-table-column show-overflow-tooltip :prop="'pri'" :label="$t('entities.story.mygroupmain_grid.columns.pri')" :width="70"  :align="'left'" :sortable="'custom'">
                    <template v-slot:header="{column}">
                      <span class="column-header ">
                        {{$t('entities.story.mygroupmain_grid.columns.pri')}}
                      </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                        <template >
            <codelist :value="row.pri" tag='Story__pri' codelistType='STATIC' ></codelist>
                        </template>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('prodoctname')">
                <el-table-column show-overflow-tooltip :prop="'prodoctname'" :label="$t('entities.story.mygroupmain_grid.columns.prodoctname')" :min-width="200"  :align="'left'" :sortable="'custom'">
                    <template v-slot:header="{column}">
                      <span class="column-header ">
                        {{$t('entities.story.mygroupmain_grid.columns.prodoctname')}}
                      </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                        <app-column-link deKeyField='product' :context="JSON.parse(JSON.stringify(context))" :viewparams="JSON.parse(JSON.stringify(viewparams))" :data="row" :linkview="{viewname: 'product-main-tab-exp-view', height: 0,width: 0,title: $t('entities.product.views.maintabexpview.title'),placement: '', isRedirectView: false,deResParameters: [
            ]
            ,parameters: [
            { pathName: 'products', parameterName: 'product' },
            { pathName: 'maintabexpview', parameterName: 'maintabexpview' }
            ]}" valueitem="product">
                            <span>{{row.prodoctname}}</span>
                        </app-column-link >
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('title')">
                <el-table-column show-overflow-tooltip :prop="'title'" :label="$t('entities.story.mygroupmain_grid.columns.title')" :min-width="100"  :align="'left'" :sortable="'custom'">
                    <template v-slot:header="{column}">
                      <span class="column-header ">
                        {{$t('entities.story.mygroupmain_grid.columns.title')}}
                      </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                        <app-column-link deKeyField='story' :context="JSON.parse(JSON.stringify(context))" :viewparams="JSON.parse(JSON.stringify(viewparams))" :data="row" :linkview="{viewname: 'story-main-view', height: 0,width: 0,title: $t('entities.story.views.mainview.title'),placement: 'DRAWER_TOP', isRedirectView: false,deResParameters: [
            { pathName: 'products', parameterName: 'product' },
            ]
            ,parameters: [
            { pathName: 'stories', parameterName: 'story' },
            { pathName: 'mainview', parameterName: 'mainview' }
            ]}" valueitem="srfkey">
                            <span>{{row.title}}</span>
                        </app-column-link >
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('plan')">
                <el-table-column show-overflow-tooltip :prop="'plan'" :label="$t('entities.story.mygroupmain_grid.columns.plan')" :width="200"  :align="'left'">
                    <template v-slot:header="{column}">
                      <span class="column-header ">
                        {{$t('entities.story.mygroupmain_grid.columns.plan')}}
                      </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                        <template >
            <codelist :value="row.plan" tag='CurProductPlan' codelistType='DYNAMIC' ></codelist>
                        </template>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('openedby')">
                <el-table-column show-overflow-tooltip :prop="'openedby'" :label="$t('entities.story.mygroupmain_grid.columns.openedby')" :width="120"  :align="'left'" :sortable="'custom'">
                    <template v-slot:header="{column}">
                      <span class="column-header ">
                        {{$t('entities.story.mygroupmain_grid.columns.openedby')}}
                      </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                        <template >
            <codelist :value="row.openedby" tag='UserRealName' codelistType='DYNAMIC' renderMode="STR" valueSeparator="," textSeparator="," ></codelist>
                        </template>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('assignedto')">
                <el-table-column show-overflow-tooltip :prop="'assignedto'" :label="$t('entities.story.mygroupmain_grid.columns.assignedto')" :width="120"  :align="'left'" :sortable="'custom'">
                    <template v-slot:header="{column}">
                      <span class="column-header ">
                        {{$t('entities.story.mygroupmain_grid.columns.assignedto')}}
                      </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                        <template >
            <codelist :value="row.assignedto" tag='UserRealNameW' codelistType='DYNAMIC' renderMode="STR" valueSeparator="," textSeparator="," ></codelist>
                        </template>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('estimate')">
                <el-table-column show-overflow-tooltip :prop="'estimate'" :label="$t('entities.story.mygroupmain_grid.columns.estimate')" :width="100"  :align="'left'" :sortable="'custom'">
                    <template v-slot:header="{column}">
                      <span class="column-header ">
                        {{$t('entities.story.mygroupmain_grid.columns.estimate')}}
                      </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                            <app-format-data dataType="FLOAT" precision="0" :data="row.estimate"></app-format-data>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('status')">
                <el-table-column show-overflow-tooltip :prop="'status'" :label="$t('entities.story.mygroupmain_grid.columns.status')" :width="100"  :align="'left'" :sortable="'custom'">
                    <template v-slot:header="{column}">
                      <span class="column-header ">
                        {{$t('entities.story.mygroupmain_grid.columns.status')}}
                      </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                        <template >
            <codelist :value="row.status" tag='Story__status' codelistType='STATIC' ></codelist>
                        </template>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('stage')">
                <el-table-column show-overflow-tooltip :prop="'stage'" :label="$t('entities.story.mygroupmain_grid.columns.stage')" :width="100"  :align="'left'" :sortable="'custom'">
                    <template v-slot:header="{column}">
                      <span class="column-header ">
                        {{$t('entities.story.mygroupmain_grid.columns.stage')}}
                      </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                        <template >
            <codelist :value="row.stage" tag='Story__stage' codelistType='STATIC' ></codelist>
                        </template>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('modulename')">
                <el-table-column show-overflow-tooltip :prop="'modulename'" :label="$t('entities.story.mygroupmain_grid.columns.modulename')" :width="150"  :align="'left'" :sortable="'custom'">
                    <template v-slot:header="{column}">
                      <span class="column-header ">
                        {{$t('entities.story.mygroupmain_grid.columns.modulename')}}
                      </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                        <span>{{row.modulename}}</span>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('uagridcolumn1')">
                <el-table-column :column-key="'uagridcolumn1'" fixed="right" :label="$t('entities.story.mygroupmain_grid.columns.uagridcolumn1')" :width="220"  :align="'center'">
                    <template v-slot:header="{column}">
                      <span class="column-header ">
                        {{$t('entities.story.mygroupmain_grid.columns.uagridcolumn1')}}
                      </span>
                    </template>
                    <template slot-scope="scope">
                        <div style="text-align: center;">
                          <a v-show="scope.row.Exit.visabled" :disabled="scope.row.Exit.disabled" @click="uiAction(scope.row, 'Exit', $event)" :title="$t('entities.story.mygroupmain_grid.uiactions.exit')">
                            <i class='fa fa-sign-out'></i>
                            {{$t('entities.story.mygroupmain_grid.uiactions.exit')}}
                          </a>
                          <divider v-show="scope.row.ActiviteDash.visabled" type='vertical'></divider>
                          <a v-show="scope.row.ActiviteDash.visabled" :disabled="scope.row.ActiviteDash.disabled" @click="uiAction(scope.row, 'ActiviteDash', $event)" :title="$t('entities.story.mygroupmain_grid.uiactions.story_activitedash')">
                            <i class='fa fa-magic'></i>
                            {{$t('entities.story.mygroupmain_grid.uiactions.story_activitedash')}}
                          </a>
                          <divider v-show="scope.row.ChangeStoryDetailDash.visabled" type='vertical'></divider>
                          <a v-show="scope.row.ChangeStoryDetailDash.visabled" :disabled="scope.row.ChangeStoryDetailDash.disabled" @click="uiAction(scope.row, 'ChangeStoryDetailDash', $event)" :title="$t('entities.story.mygroupmain_grid.uiactions.story_changestorydetaildash')">
                            <i class='fa fa-exchange'></i>
                            {{$t('entities.story.mygroupmain_grid.uiactions.story_changestorydetaildash')}}
                          </a>
                          <divider v-show="scope.row.ReviewStoryDash.visabled" type='vertical'></divider>
                          <a v-show="scope.row.ReviewStoryDash.visabled" :disabled="scope.row.ReviewStoryDash.disabled" @click="uiAction(scope.row, 'ReviewStoryDash', $event)" :title="$t('entities.story.mygroupmain_grid.uiactions.story_reviewstorydash')">
                            <i class='fa fa-search'></i>
                            {{$t('entities.story.mygroupmain_grid.uiactions.story_reviewstorydash')}}
                          </a>
                          <divider v-show="scope.row.AssignToDash.visabled" type='vertical'></divider>
                          <a v-show="scope.row.AssignToDash.visabled" :disabled="scope.row.AssignToDash.disabled" @click="uiAction(scope.row, 'AssignToDash', $event)" :title="$t('entities.story.mygroupmain_grid.uiactions.story_assigntodash')">
                            <i class='fa fa-hand-o-right'></i>
                            {{$t('entities.story.mygroupmain_grid.uiactions.story_assigntodash')}}
                          </a>
                          <divider v-show="scope.row.CloseStoryDash.visabled" type='vertical'></divider>
                          <a v-show="scope.row.CloseStoryDash.visabled" :disabled="scope.row.CloseStoryDash.disabled" @click="uiAction(scope.row, 'CloseStoryDash', $event)" :title="$t('entities.story.mygroupmain_grid.uiactions.story_closestorydash')">
                            <i class='fa fa-power-off'></i>
                            {{$t('entities.story.mygroupmain_grid.uiactions.story_closestorydash')}}
                          </a>
                          <divider v-show="scope.row.SubStoryCz.visabled" type='vertical'></divider>
                          <a v-show="scope.row.SubStoryCz.visabled" :disabled="scope.row.SubStoryCz.disabled" @click="uiAction(scope.row, 'SubStoryCz', $event)" :title="$t('entities.story.mygroupmain_grid.uiactions.story_substorycz')">
                            <i class='iconfont studio-icon-subnets'></i>
                            {{$t('entities.story.mygroupmain_grid.uiactions.story_substorycz')}}
                          </a>
                          <divider v-show="scope.row.OpenBaseInfoC.visabled" type='vertical'></divider>
                          <a v-show="scope.row.OpenBaseInfoC.visabled" :disabled="scope.row.OpenBaseInfoC.disabled" @click="uiAction(scope.row, 'OpenBaseInfoC', $event)" :title="$t('entities.story.mygroupmain_grid.uiactions.story_openbaseinfoc')">
                            <i class='fa fa-edit'></i>
                            {{$t('entities.story.mygroupmain_grid.uiactions.story_openbaseinfoc')}}
                          </a>
                          <divider v-show="scope.row.delete.visabled" type='vertical'></divider>
                          <a v-show="scope.row.delete.visabled" :disabled="scope.row.delete.disabled" @click="uiAction(scope.row, 'delete', $event)" :title="$t('entities.story.mygroupmain_grid.uiactions.story_delete')">
                            <i class='fa fa-remove'></i>
                            
                          </a>
                        </div>
                    </template>
                </el-table-column>
            </template>
            <template v-if="adaptiveState">
                <el-table-column></el-table-column>
            </template>
        </el-table>
        <row class='grid-pagination' v-show="items.length > 0">
            <page class='pull-right' @on-change="pageOnChange($event)" 
                @on-page-size-change="onPageSizeChange($event)"
                :transfer="true" :total="totalRecord"
                show-sizer :current="curPage" :page-size="limit"
                :page-size-opts="[10, 20, 30, 40, 50, 60, 70, 80, 90, 100]" show-elevator show-total>
                <span>
                    <span class="page-column">
                        <poptip transfer placement="top-start">
                            <i-button icon="md-menu">{{$t('app.gridpage.choicecolumns')}}</i-button>
                            <div slot="content">
                                <template v-for="col in allColumns">
                                    <div :key="col.name"><el-checkbox v-model="col.show" @change="onColChange()">{{$t(col.langtag)}}</el-checkbox></div>
                                </template>
                            </div>
                        </poptip>
                    </span>
                    <span class="page-button"><i-button icon="md-refresh" :title="$t('app.gridpage.refresh')" @click="pageRefresh()"></i-button></span>&nbsp;
                    <span>
                        {{$t('app.gridpage.show')}}&nbsp;
                        <span>
                            <template v-if="items.length === 1">
                            1
                            </template>
                            <template v-else>
                                <span>{{(curPage - 1) * limit + 1}}&nbsp;-&nbsp;{{totalRecord > curPage * limit ? curPage * limit : totalRecord}}</span>
                            </template>
                        </span>&nbsp;
                        {{$t('app.gridpage.records')}}，{{$t('app.gridpage.totle')}}&nbsp;{{totalRecord}}&nbsp;{{$t('app.gridpage.records')}}
                    </span>
                </span>
            </page>
        </row>
    </i-form>
</div>